//使用正则执行一个字符串
const re1 = /abc/gi;
const message = "fdabc21 faBc323 dfABC12 AaaBc32";
const res1 = re1.exec(message);
console.log(res1);
/*
    [
    'abc',
    index: 2,
    input: 'fdabc21 faBc323 dfABC12 AaaBc32',
    groups: undefined
    ]
*/
